package org.huamoxi.constant;

public class ResponseStatusConstants {
    /**
     * 默认访问成功
     */
    public static final int SUCCESS_CODE = 200;

    /**
     * 默认访问失败
     */
    public static final int FAIL_CODE = 500;

    /**
     * 访问未携带token
     */
    public static final int INVALID_CODE = 401;

    /**
     * 访问携带token不合法
     */
    public static final int NOT_LOGIN_CODE = 401;

    /**
     * 登录失败
     */
    public static final int BAD_LOGIN_CODE = 403;

    /**
     * token已过期
     */
    public static final int EXP_LOGIN_CODE = 403;


    /**
     * 响应信息
     * */
    // -----------------上面对应的message------------------ //
    public static final String SUCCESS_MESSAGE = "访问成功";
    public static final String FAIL_MESSAGE = "访问失败";
    public static final String INVALID_MESSAGE = "不合法的令牌";
    public static final String NOT_LOGIN_MESSAGE = "未登录,请先登录";
    public static final String BAD_LOGIN_MESSAGE = "登录失败";
    public static final String EXP_LOGIN_MESSAGE = "登录已过期";
}
